﻿<%@ Page MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="ListBinding.aspx.cs" Inherits="Omu.AwesomeWebFormsDemo.ListBinding" Culture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        a Lookup bound to an AjaxDropdown inside a repeater
    </h2>
    <ul class="bigl">
        <asp:Repeater runat="server" ID="rep1">
            <ItemTemplate>
                <li>
                    <o:AjaxDropdown runat="server" ID="lkCategory" Url="~/svc/aja.svc/CategoriesDropdown"
                        Value='<%#Eval("Id") %>'></o:AjaxDropdown>
                    <o:Lookup runat="server" ID="FruitsByCategory" GetUrl="~/svc/aja.svc/FruitGet" SearchUrl='~/svc/aja.svc/FruitsByCategorySearch'
                        ParentId='<%#Container.FindControl("lkCategory").ClientID %>' ClearButton="true" />
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</asp:Content>
